package com.sirun.cn.fca.module.main.home.temp.message;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.sirun.cn.fca.R;
import com.tencent.cloud.iov.block.BaseBlockLayout;
import com.tencent.cloud.iov.block.Block;
import com.tencent.cloud.uikit.ui.widget.IovButton;

@Block
public class HomeMessageBlockLayout extends BaseBlockLayout<IHmoeMessageBlockItem> {
    private IovButton mMessageBtn;

    @Override
    protected View createView(ViewGroup parent) {
        View view = LayoutInflater.from(parent.getContext())
                .inflate(R.layout.home_message, parent, false);
        mMessageBtn = view.findViewById(R.id.btn_message);

        mMessageBtn.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                onAction(IHomeMessageAction.ACTION_CLICK_MESSAGE);
            }
        });
        return view;
    }

    @Override
    protected void bindView(IHmoeMessageBlockItem item, int position) {
    }

}
